Page History: Test Request
Compare Page Revisions
Page Revision: 2012/09/05 13:45
Session Integrity CheckTest Request messages provide a mechanism of eliciting a response from the counterparty to acknowledge a continuation of FIX Session connectivity. Test requests can occur at any time during the FIX Session. When a test request is received, the party is obligated to respond to the Test Request message with a Heartbeat. Such heartbeat must also contain the TestRequestID (Tag 112) that originated in the original Test Request message.
Test Request messages also provide an opportunity to check for out-of-sequence conditions. It permits checking for the expected outgoing sequence number (Tag 34 of the Test Request) and expected incoming sequence number (Tag 34 of the mandatory hearbeat response).
The TestRequestID (Tag 112) can be text of any form. An unique string is recommended (e.g. an instantenous time label) to be able to pair Test Requests to their corresponding Hearbeat messages.
Message DictionaryTag | Field Name | Req'd | Comments |
---|
| Standard Header | Y | MsgType = 0 |
112 | TestReqID | N | Required when the heartbeat is the result of a Test Request message |
| Standard Trailer | Y |
Sample Messages
Test Request generated by the client:
34=123|49=test|56=T4Test|50=TraderName|52=20120905-18:09:12.103|112=treqid.09.05.2012-13.09.12|
[FIXTESTREQUEST]
[MsgSeqNum] 34 = 123
[SenderCompID] 49 = test
[TargetCompID] 56 = T4Test
[SenderSubID] 50 = TraderName
[SendingTime] 52 = 20120905-18:09:12.103
[TestReqID] 112 = treqid.09.05.2012-13.09.12
T4 API Server Heartbeat response to the Client Test Request
34=72|49=T4Test|56=test|50=T4FIX|52=20120905-18:09:12.119|112=treqid.09.05.2012-13.09.12|
[FIXHEARTBEAT]
[MsgSeqNum] 34 = 72
[SenderCompID] 49 = T4Test
[TargetCompID] 56 = test
[SenderSubID] 50 = T4FIX
[SendingTime] 52 = 20120905-18:09:12.119
[TestReqID] 112 = treqid.09.05.2012-13.09.12
Test Request generated by the T4 API Server:
34=122|49=T4Test|56=test|50=T4FIX|52=20120905-18:34:21.398|112=cts-20120905-18:34:21.398|
[FIXTESTREQUEST]
[MsgSeqNum] 34 = 122
[SenderCompID] 49 = T4Test
[TargetCompID] 56 = test
[SenderSubID] 50 = T4FIX
[SendingTime] 52 = 20120905-18:34:21.398
[TestReqID] 112 = cts-20120905-18:34:21.398
Client Heartbeat response to the T4 API Server Test Request
34=173|49=test|56=T4Test|52=20120905-18:34:36.436|112=cts-20120905-18:34:21.398|
[FIXHEARTBEAT]
[MsgSeqNum] 34 = 173
[SenderCompID] 49 = test
[TargetCompID] 56 = T4Test
[SendingTime] 52 = 20120905-18:34:36.436
[TestReqID] 112 = cts-20120905-18:34:21.398